@extends('layout.app')

@section('content')

    <div class="box-body">

        <table id="rowed3"></table>
        <div id="prowed3"></div>

    </div>

<script>

$(document).ready(function() {

     var data = {
            url :"/config/gamecount",
            colNames: ['id','牌局类型', '名称', '总局数', '备注'],
            colModel: [{
                name: '_id',
                hidden: true,
        	key: true
            },{
                name: 'value',
                sortable: false,
                editable: true,
                editrules: {
                    required: true,
                    integer: true
                },
            }, {
                name: 'name',
                sortable: false,
                editable: true,
                editrules: {
                    required: true
                }
            },{
                name: 'count',
                sortable: false,
                editable: true,
                editrules: {
                    required: true,
                    integer: true
                }
            }, {
                name: 'des',
                editable: true
            }],
            caption: "{{$label2}}",
            editurl: "/config/gamecount/edit",
            autowidth: false,
            width: 500,
        };

    jqGrid(data, true, true, true);
});

</script>
@endsection